// ============================================
// 오류 내역 카운트 Grid
// ============================================
var httpProxyTypeCount = new Ext.data.HttpProxy({
	method: 'POST',
	url: '',
	timeout: 90000
});

var storeTypeCount = new Ext.data.JsonStore({
	root: 'json_list',
	totalProperty: 'json_count',
	idProperty: 'file_nm',
	fields: [
	         'file_no', 'detect_type', 'detect_name', 'cnt'
	         ],
	//autoLoad: ture,
	proxy: httpProxyTypeCount
});

function fnRdrType(val, meta, rec, rIdx, cIdx, store)
{
	var strRet = val;
	
	if (rIdx == 4)
	{
		meta.css = 'cellcolor';
		strRet = '<b>' + val + '</b>';
	}
	
	return strRet;
}

var gridTypeCount = new Ext.grid.GridPanel({
	id: 'id_grid_type_count',
	region: 'south',
	title: '상세 점검내용',
	border: false,
	iconCls: 'icon-grid',
	store: storeTypeCount,
	columns: [{
		id: 'detect_name',
		dataIndex: 'detect_name',
		header: '주요 취약점',
		renderer: fnRdrType
	},{
		id: 'cnt',
		dataIndex: 'cnt',
		renderer: fnRdrType,
		width: 50
	}],
	stripeRows: true,
	autoExpandColumn: 'detect_name',
	height: 200
});


	
	
	
	